package com.macaline.nio;

import org.junit.jupiter.api.Test;

import java.nio.file.Path;
import java.nio.file.Paths;

public class FileLock {


    public void copy(){
    }

    /**
     * 相对路径
     */
    @Test
    public void path(){

        Path path = Paths.get("D:\\download", "..\\logs");
        System.out.println(path.toString());
        Path normalize = path.normalize();
        System.out.println(normalize.toString());

    }

}
